import 'package:flutter/material.dart';
import 'package:flutter_shop/res/colors.dart';
import 'package:flutter_shop/res/dimens.dart';

///Title:常规文本样式 <br/>
///Description: <br/>
///author:xiemiao <br/>
///date: 2020-02-18 <br/>
///version 1.0 <br/>
class TextStyles {
  static const TextStyle common_title_text = TextStyle(
    fontSize: CommonDimens.font_size_large,
    color: CommonColors.black,
  );
  static const TextStyle common_text = TextStyle(
    fontSize: CommonDimens.font_size_middle,
    color: CommonColors.common_text,
  );
  static const TextStyle second_text = TextStyle(
    fontSize: CommonDimens.font_size_small,
    color: CommonColors.second_text,
  );
  static const TextStyle primary_text = TextStyle(
    fontSize: CommonDimens.font_size_middle,
    color: CommonColors.primary,
  );
  static const TextStyle second_primary_text = TextStyle(
    fontSize: CommonDimens.font_size_small,
    color: CommonColors.primary,
  );
  static const TextStyle white_text = TextStyle(
    fontSize: CommonDimens.font_size_middle,
    color: CommonColors.white,
  );
  static const TextStyle second_white_text = TextStyle(
    fontSize: CommonDimens.font_size_small,
    color: CommonColors.white,
  );
}

///常规分割线
class Borders {
  static const Border left = Border(
    left: BorderSide(
      width: 1,
      color: CommonColors.common_divide_line,
    ),
  );
  static const Border top = Border(
    top: BorderSide(
      width: 1,
      color: CommonColors.common_divide_line,
    ),
  );
  static const Border right = Border(
    right: BorderSide(
      width: 1,
      color: CommonColors.common_divide_line,
    ),
  );
  static const Border bottom = Border(
    bottom: BorderSide(
      width: 1,
      color: CommonColors.common_divide_line,
    ),
  );
}

///常规间隔
class Gaps {
  // 水平间隔
  static const Widget h_gap_5 = SizedBox(width: 5);
  static const Widget h_gap_10 = SizedBox(width: 10);
  static const Widget h_gap_15 = SizedBox(width: 15);

  // 垂直间隔
  static const Widget v_gap_5 = SizedBox(height: 5);
  static const Widget v_gap_10 = SizedBox(height: 10);
  static const Widget v_gap_15 = SizedBox(height: 15);
  static const Widget v_gap_30 = SizedBox(height: 30);
  static const Widget v_gap_60 = SizedBox(height: 60);

  //占空位
  static const Widget empty = SizedBox();
}

///常规容器padding
class Paddings {
  static const EdgeInsetsGeometry common = EdgeInsets.fromLTRB(15, 10, 15, 10);
  static const EdgeInsetsGeometry left_right = EdgeInsets.symmetric(horizontal: 15);
}
